package com.kevin.demo.entity.log;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 *
 * @author kevin
 * @email bali@jzez100.com
 * @date 2018-08-27
 */
@Table(name = "biz_log")
public class BizLog implements Serializable {
    private static final long serialVersionUID = 1L;


    @Id
    @Column(name = "id")
    @ApiModelProperty("")
    private Integer id;


    @Column(name = "operation")
    @ApiModelProperty("操作名词 新增,编辑,删除")
    private String operation;


    @Column(name = "bizname")
    @ApiModelProperty("业务操作对象 如:用户信息")
    private String bizname;

    @Column(name = "biztype")
    @ApiModelProperty("业务操作对象 如:USER")
    private String biztype;


    @Column(name = "opr_content")
    @ApiModelProperty("操作内容")
    private String oprContent;


    @Column(name = "oldobject")
    @ApiModelProperty("更新前对象")
    private String oldobject;


    @Column(name = "newobject")
    @ApiModelProperty("更新后对象")
    private String newobject;


    @JSONField(format = "yyyy-MM-dd")
    @Column(name = "create_at")
    @ApiModelProperty("")
    private Date createAt;


    @Column(name = "opr_code")
    @ApiModelProperty("操作人编码")
    private String oprCode;


    @Column(name = "opr_name")
    @ApiModelProperty("操作人名称")
    private String oprName;



    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getOperation() {
        return operation;
    }

    public void setBizname(String bizname) {
        this.bizname = bizname;
    }

    public String getBizname() {
        return bizname;
    }

    public String getBiztype() {
        return biztype;
    }

    public void setBiztype(String biztype) {
        this.biztype = biztype;
    }

    public void setOprContent(String oprContent) {
        this.oprContent = oprContent;
    }

    public String getOprContent() {
        return oprContent;
    }

    public void setOldobject(String oldobject) {
        this.oldobject = oldobject;
    }

    public String getOldobject() {
        return oldobject;
    }

    public void setNewobject(String newobject) {
        this.newobject = newobject;
    }

    public String getNewobject() {
        return newobject;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setOprCode(String oprCode) {
        this.oprCode = oprCode;
    }

    public String getOprCode() {
        return oprCode;
    }

    public void setOprName(String oprName) {
        this.oprName = oprName;
    }

    public String getOprName() {
        return oprName;
    }
}
